﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace TestDatabase
{
    public partial class Progress : Form
    {
        public string Description 
        { 
            get { return lbDescription.Text; } 
            set { lbDescription.Text = value; } 
        }

        public int MaxProgress 
        {
            get { return progressBar1.Maximum; }
            set 
            { 
                progressBar1.Maximum = value;
                ActualProgress = 0;
            } 
        }

        public int ActualProgress 
        {
            get { return progressBar1.Value; }
            set 
            { 
                progressBar1.Value = value;
                this.Refresh();
            } 
        }

        public Progress()
        {
            InitializeComponent();
        }
    }
}
